<!doctype html>
<html>
<head>
    <title>医嘱管理-长期医嘱</title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile-1.4.0.css" />
    <link rel="stylesheet" type="text/css" href="../../css/zpdydhl_mobile.css">
    <link rel="stylesheet" type="text/css" href="../../css/mobiscroll.custom-2.6.2.min.css">
    <script type="text/javascript" src="../../js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="../../js/jquery.mobile-1.4.0.min.js"></script>
    <script type="text/javascript" src="../../js/zpdydhl_mobile.js"></script>
    <script type="text/javascript" src="../../js/mobiscroll.custom-2.6.2.min.js"></script>
    <script type="text/javascript" src="../../js/zpdydhl_mobile.js?1"></script>
    <script type="text/javascript" src="../../js/yizhu.js?1"></script>
    <style type="text/css">
        .li_zhixing_state a {
            font-size: 18px;
            color: #0D85C0;
        }

        /*加载loding*/
        .spinner {
          margin: 5px auto 0;
          width: 150px;
          text-align: center;
          position: fixed;
        }

        .spinner > div {
          width: 20px;
          height: 20px;
          background-color: #67CF22;

          border-radius: 100%;
          display: inline-block;
          -webkit-animation: bouncedelay 1.4s infinite ease-in-out;
          animation: bouncedelay 1.4s infinite ease-in-out;
          /* Prevent first frame from flickering when animation starts */
          -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
        }

        .spinner .bounce1 {
          -webkit-animation-delay: -0.32s;
          animation-delay: -0.32s;
        }

        .spinner .bounce2 {
          -webkit-animation-delay: -0.16s;
          animation-delay: -0.16s;
        }

        @-webkit-keyframes bouncedelay {
          0%, 80%, 100% { -webkit-transform: scale(0.0) }
          40% { -webkit-transform: scale(1.0) }
        }

        @keyframes bouncedelay {
          0%, 80%, 100% {
            transform: scale(0.0);
            -webkit-transform: scale(0.0);
          } 40% {
            transform: scale(1.0);
            -webkit-transform: scale(1.0);
          }
        }
        .span-default {
            width:100%;
            height: 40px;
            line-height: 40px;
            text-align: center;
            display: block;
        }
        .span-selected {
            width:100%;
            height: 40px;
            color: #6d6eaa;
            line-height: 40px;
            text-align: center;
            display: block;
            border-bottom:1px solid #6d6eaa;
        }
        /*end*/
    </style>
</head>
<body>
<div data-role="page" data-theme="c">
	<table align="center" style="text-align:center middle;width:100%">
		<tr>
			<td>
                <span data-role="button" class="changqi_linshi_switch span-selected" id="switch_changqi" zyizhu_type="长期">长期</span>
            </td>
			<td>
                <span data-role="button" class="changqi_linshi_switch span-default" id="switch_linshi" zyizhu_type="临时">临时</span>
            </td>
		</tr>
	</table>
    <div data-role="content" class="content" style="">
        <div class="yizhu_list_content" style="">

        </div>
    </div>
    <div id="yizhu_dialog">
        <div class="yizhu_dialog" data-theme="a">
            <div class="yizhu_dialog_title" data-theme="a"></div>
            <div class="yizhu_dialog_content"></div>
            <div class="yizhu_dialog_button"></div>
        </div>
    </div>

    <!-- <div data-role="footer" data-position="fixed" class="footer_list"  data-tap-toggle="false" data-theme="b">
        <ul>
			<li><a href="./showPatientZhuyuanDetail.html" data-ajax="false"><img src="../../css/images/bl.png"></a></li>
			<li><a href="./showPatientZhenduan.html" data-ajax="false"><img src="../../css/images/jy.png"></a></li>
			<li><a  href="./showYizhuChangqi.html" data-ajax="false"><img src="../../css/images/yz_hover.png"></a></li>
			<li><a href="./showTizhengList.html" data-ajax="false"><img src="../../css/images/tz.png"></a></li>
			<li><a href="../JianyanJiancha/showJianchaList.html" data-ajax="false"><img src="../../css/images/jc.png"></a></li>
        </ul>
    </div> -->
</div>
<script type="text/javascript">
    patient_info_global = {zhuyuan_id:'55606914'};
    $(function(){
        document_type_global="show_yizhu";

        var changqi_or_linshi_type = "长期";
        // 选项卡切换
        $(".changqi_linshi_switch").click(function(){
            var zhixing_state = $(this).attr("zyizhu_type");
            changqi_or_linshi_type = zhixing_state;
            if(zhixing_state == "长期"){
                $('#switch_changqi').attr({'class':'changqi_linshi_switch span-selected'});
                $('#switch_linshi').attr({'class': 'changqi_linshi_switch span-default'});
            } else {
                $('#switch_changqi').attr({'class':'changqi_linshi_switch span-default'});
                $('#switch_linshi').attr({'class': 'changqi_linshi_switch span-selected'});
            }

            getYizhuList(patient_info_global.zhuyuan_id,"全部","全部",false,changqi_or_linshi_type);

        });

        // 拉取数据
        /*alert(server_url);
        refreshData();*/
    });
	function refreshData(){
		//获取默认数据
		setHeader();
        getYizhuList(patient_info_global.zhuyuan_id,"全部","全部",false,"长期");

	}
</script>
</body>
</html>

